//
// Decompiled by Jadx - 351ms
//
package s;

import androidx.appcompat.app.t;
import dq.b;
import fi.w;
import fi.y;
import me.plusne.common.Http.Vote;
import me.plusne.common.Json.VoteSubmit;

public final class ak implements w.e {
    public final VoteSubmit a;
    public final int b;
    public final w c;
    public final ao d;

    public ak(ao aoVar, VoteSubmit voteSubmit, int i, w wVar) {
        this.d = aoVar;
        this.a = voteSubmit;
        this.b = i;
        this.c = wVar;
    }

    public final void g(w wVar, boolean z) {
        if (z) {
            ao aoVar = this.d;
            y.e(aoVar.e);
            String token = aoVar.a.getToken();
            int id = this.a.getId();
            t.c().j(((Vote) b.b(Vote.class)).deleteFeature(token, id).subscribeWith(new a(this, aoVar.e)));
        }
    }
}
